using System;
using System.Collections;
using System.Collections.Generic;
using CRM.Core.Entities;
using CRM.Presenter.Interfaces;

namespace CRM.Presenter
{
    public class CustomerPresenter
    {
        public CustomerPresenter(ICustomer customer)
        {
            _customer = customer;
        }
        public void CustomerSearch(object sender, EventArgs e)
        {
            IList<CustomerEntity> customerEntities 
                        = new List<CustomerEntity>(){new CustomerEntity {CustomerId=1,CustomerName = "Laxman"},
                                                                 new CustomerEntity {CustomerId=2,CustomerName = "Vivek"},
                                                                 new CustomerEntity {CustomerId=3,CustomerName = "Vikas"},
                                                                 new CustomerEntity {CustomerId=4,CustomerName = "Swapnil"},
                                                                 new CustomerEntity {CustomerId=5,CustomerName = "Anthony"}
                                                                };
            _customer.BindCustomerData = customerEntities;
        }
        private readonly ICustomer _customer;
    }
}